﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.Drawing;
 

namespace ICSharpCode.WinFormsUI.Controls
{
    public class NListBox : System.Windows.Forms.ListBox
    {
        public NListBox()
        {
            base.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.DrawMode = DrawMode.OwnerDrawFixed;            
        }

        private ButtonBorderStyle _borderStyle = ButtonBorderStyle.Solid;
        public new ButtonBorderStyle BorderStyle
        {
            get { return _borderStyle; }
            set
            {
                _borderStyle = value;
                this.Invalidate();
            }
        }        

    }
}
